var choiceDoctorModule = (function() {
	return {

		/**
		 * 获取医生详情
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		queryDetail: function(param, callBack) {
			utilModule.post({
				url: "doctor/doctorDetail",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		}, 

		/**
		 * 获取医生列表
		 * @param {Object} param
		 * @param {Object} callBack
		 */
			queryList: function(param, callBack) {
			utilModule.post({
				url: "doctor/chooseDoctorIndex",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					console.log(response);
					callBack(response);
				}
			});
		},
		

		 /**
	        * 提交咨询订单
	        * @param {Object} param
	        * @param {Object} callBack
	        */
	        submitOrder: function (param, callBack) {
	            utilModule.post({
	                url: "consultOrderPay/submitOrder",
	                data: param,
	                needJson: true, 
	                async: false,
	                success: function (response) {
	                    callBack(response);
	                }
	            });
	        },
			/**
	        * 提交快速问答免费
	        * @param {Object} param
	        * @param {Object} callBack
	        */
	        submitFreeOrder: function (param, callBack) {
	            utilModule.post({
	                url: "quickquestion/getFreeDoctor",
	                data: param,
	                needJson: true, 
	                async: false,
	                success: function (response) {
	                    callBack(response);
	                }
	            });
	        }
		
	}
})();